<template>
  <div class="navbar">
    <van-nav-bar
      :title="$route.meta.title"
      left-text="关闭"
      left-arrow
      @click-left="onClickLeft"
    />
  </div>
</template>

<script>
export default {
  name: 'navbar',
  methods: {
    onClickLeft() {
      this.$router.back()
    },
  },
}
</script>

<style lang="scss" scoped>
::v-deep .van-nav-bar__text{
  color: black;
}
::v-deep .van-nav-bar .van-icon{
  font-size: 22px;
  color: black;
}
</style>
